import axios, { AxiosPromise } from 'axios';

declare interface Request{
  post:({}:{url:string,data:object})=>AxiosPromise
}
const request:Request={
  post:async ({url,data})=>{
    let res =await axios(url,data)
    return res.data
  }
}

export {
  request
} 